package com.qfedu.lc.api.user;

import com.qfedu.lc.api.user.feigin.UserVipService;
import com.qfedu.lc.common.param.UserVipAdd;
import com.qfedu.lc.common.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/api/uservip")
public class UserVipController {

    @Autowired
    private UserVipService userVipService;

    /**
     * 用户购买vip 或者 vip 续期
     *
     * @param userVipAdd
     * @return
     */
    @RequestMapping("/save")
    public R save(@RequestBody UserVipAdd userVipAdd) {

        return userVipService.save(userVipAdd);

    }

}